export const rules = {
  name: [
    {
      required: true,
      message: '请输入账号!',
      trigger: 'blur'
    },
    {
      pattern: /^[a-z0-9]{4,10}$/,
      message: '请输入正确的账号!',
      trigger: 'blur'
    }
  ],
  password: [
    {
      required: true,
      message: '密码必传!',
      trigger: 'blur'
    },
    {
      pattern: /^[a-z0-9]{4,10}$/,
      message: '密码必须是5~10个数字或者字母',
      trigger: 'blur'
    }
  ]
}
